package com.lz.demo10;

/**
 * @ClassName Swallow
 * @Description 燕子类
 * @Author 2214361854
 * @Date 2022/5/28 15:24
 * @Version 1.0
 */
public class Swallow extends Bird implements FlyAnimal {
    @Override
    public void layEggs() {
        System.out.println("燕子的下蛋数为：" + eggNumber);
    }

    @Override
    public void fly() {
        System.out.println("燕子归巢~");
    }

    public void makeNest() {
        System.out.println("燕子在筑巢~");
    }
}

